export default {
	/**
	 * 状态 0待审核 1待分配 2待接货 3待支付 4待装车 5待送达 6已送达待评价 7已评价订单完成 -1订单已取消 -2审核拒绝 98 司机拒绝
	 */
	getTxtByStatus(status) {
		switch (status) {
			case 0: {
				return '待审核';
				break
			}
			case 1: {
				return '待分配';
				break
			}
			case 2: {
				return '待接货';
				break
			}
			case 3: {
				return '待支付';
				break
			}
			case 4: {
				return '待装车';
				break
			}
			case 5: {
				return '待送达';
				break
			}
			case 6: {
				return '待评价';
				break
			}
			case 7: {
				return '已完成';
				break
			}
			case -1: {
				return '已取消';
				break
			}
			case -2: {
				return '审核拒绝';
				break
			}
			case 98: {
				return '司机拒绝';
				break
			}
			default: {
				return "";
			}
		}
	},

	getStatusBtn(e, type) {
		var isewm = true
		var ispay = true
		var iseva = true
		// 状态 0待审核 1待分配 2待接货 3待支付 4待装车 5待送达 6已送达待评价 7已评价订单完成 -1订单已取消 -2审核拒绝 98 司机拒绝
		switch (e) {
			case 0:
			case 1:
				isewm = false
				ispay = false
				iseva = false
				break;
			case 2:
				isewm = true
				ispay = false
				iseva = false
				break;
			case 3:
				isewm = false
				ispay = true
				iseva = false
				break;
			case 4:
			case 5:
				isewm = false
				ispay = false
				iseva = false
				break;
			case 6:
				isewm = false
				ispay = false
				iseva = true
				break;
			case 7:
			case -1:
			case -2:
			case 98:
			default:
				isewm = false
				ispay = false
				iseva = false
				break;
		}
		if (type == 1) {
			return ispay;
		} else if (type == 2) {
			return isewm;
		} else if (type == 3) {
			return iseva;
		}
	},
}
